package com.jtoon.bean;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Bookmark {
	
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key bid;
	
	@Persistent
	private String uid;
	
	@Persistent
	private long cid;
	
	@Persistent
	private long eid;

	@Persistent
	private int order;
	
	@Persistent
	private int imgNum;
	
	@Persistent
	private String comicsTitle;
	
	@Persistent
	private String episodeTitle;

	public Bookmark(String uid, long cid, long eid, int order, int imgNum, String comicsTitle, String episodeTitle) {
		this.uid = uid;
		this.cid = cid;
		this.eid = eid;
		this.order = order;
		this.imgNum = imgNum;
		this.comicsTitle = comicsTitle;
		this.episodeTitle = episodeTitle;
	}

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public long getCid() {
		return cid;
	}

	public void setCid(long cid) {
		this.cid = cid;
	}

	public long getEid() {
		return eid;
	}

	public void setEid(long eid) {
		this.eid = eid;
	}

	public int getOrder() {
		return order;
	}

	public void setOrder(int order) {
		this.order = order;
	}

	public int getImgNum() {
		return imgNum;
	}

	public void setImgNum(int imgNum) {
		this.imgNum = imgNum;
	}

	public Key getBid() {
		return bid;
	}

	public String getComicsTitle() {
		return comicsTitle;
	}

	public void setComicsTitle(String comicsTitle) {
		this.comicsTitle = comicsTitle;
	}

	public String getEpisodeTitle() {
		return episodeTitle;
	}

	public void setEpisodeTitle(String episodeTitle) {
		this.episodeTitle = episodeTitle;
	}
	
}
